<form class="layui-form " action="" lay-filter="dataForm">
    <input type="hidden" name="id">
    <table class="layui-table">
        <thead>
            <tr>
                <th>收件人</th>
                <th>地址</th>
                <th>电话</th>
                <th style="width:100px;">物流公司</th>
                <th style="width:200px;">运单号</th>
            </tr>
        </thead>
        <tbody>
            {volist name="info.address" id="vo" key="index"}
            <tr>
                <td>{$vo.consignee}</td>
                <td>{$vo.address}</td>
                <td>{$vo.phone}</td>
                <td>
                    <select name="address[{$index-1}][code]" lay-verify="required">
                        <option value=""></option>
                        {volist name="express_list" id="v"}
                        <option value="{$v.code}" {$v.code==$vo.express_code?'selected':''}>{$v.name}</option>
                        {/volist}
                    </select>
                </td>
                <td><input type="text" lay-verify="required" class="layui-input layui-table-edit" name="address[{$index-1}][number]" value="{$vo.express_number}" /></td>
            </tr>
            {/volist}
        </tbody>
    </table>

    <div class="layui-form-item">
        <button class="layui-btn" lay-submit="" lay-filter="dataSubmit">确定</button>
    </div>
</form>
<script>
    layui.use(['form', 'http', 'laydate'], function () {
        var form = layui.form;
        var http = layui.http;
        var $ = layui.$;
        var laydate = layui.laydate;

        //表单初始赋值
        form.val('dataForm', {
            "id": "{$info.id}",
        })
        //监听提交
        form.on('submit(dataSubmit)', function (data) {
            http.post('/order/sendgoods', data.field, function (res) {
                if (res.code == 0) {
                    parent.layui.table.reload('dataTable');
                    parent.layer.closeAll('page');
                }
            }, $(this))
            return false;
        })
    })
</script>